<%@ page import="org.ljx.taobao.controller.CommodityServlet" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    if (CommodityServlet.x()){
        out.print("<script>alert(\"购买成功\")</script>");
    }else {
        out.print("<script>alert(\"因部分原因购买失败\")</script>");
    }
%>
<form action="commodity.jsp" method="post">
    <button>继续购物</button>
</form>
<form action="query" method="post">
    <button>查看购物车</button>
</form>
<form action="login.jsp" method="post">
    <button>切换登录</button>
</form>

</body>
</html>
